package com.xiaotao.mapper;

import com.xiaotao.dto.GoodsDto;
import com.xiaotao.entity.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * GoodsMapper继承基类
 */
@Mapper
@Repository
public interface GoodsMapper extends MyBatisBaseDao<Goods, Integer> {
    List<Goods> findAll();

    List<Goods> findByMerchantId(Integer merchantId);

    Integer batchDelete(@Param("list") List<Goods> list);
}